package com.dao;

import com.model.SysUser;
import org.apache.ibatis.annotations.Param;
import org.springframework.stereotype.Repository;

import java.util.List;

@Repository
public interface SysUserMapper {
    int insertSelective(SysUser record);

    int deleteByPrimaryKey(Long id);

//    int insert(SysUser record);

    int updateByPrimaryKeySelective(SysUser record);


//    int updateByPrimaryKey(SysUser record);


    List<SysUser> selectByCondition(SysUser sysUser);

    SysUser selectByPrimaryKey(Long id);

    SysUser selectByUserName(@Param("userName") String userName);

    SysUser selectByMobile(@Param("mobile") String mobile);
}